.class public Lcom/instagram/creation/video/f/x;
.super Lcom/instagram/creation/video/f/ab;
.source "VideoFilterFragment.java"

# interfaces
.implements Lcom/instagram/creation/video/ui/d;


# instance fields
.field private a:Lcom/instagram/creation/base/ui/FilterPicker;

.field private b:Lcom/instagram/creation/video/ui/LivePreviewTextureView;

.field private c:I

.field private d:Lcom/instagram/creation/video/d/a;

.field private e:Lcom/instagram/creation/video/ui/a/a;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 28
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ab;-><init>()V

    .line 36
    const/4 v0, 0x0

    iput v0, p0, Lcom/instagram/creation/video/f/x;->c:I

    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/x;I)I
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 28
    iput p1, p0, Lcom/instagram/creation/video/f/x;->c:I

    return p1
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/x;)Lcom/instagram/creation/video/d/a;
    .locals 1
    .parameter

    .prologue
    .line 28
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->d:Lcom/instagram/creation/video/d/a;

    return-object v0
.end method

.method private aa()V
    .locals 5

    .prologue
    .line 136
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->Z()Lcom/instagram/pendingmedia/model/c;

    move-result-object v0

    .line 137
    iget v1, p0, Lcom/instagram/creation/video/f/x;->c:I

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/model/c;->b(I)V

    .line 139
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 140
    const-string v2, "pendingMediaKey"

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 142
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->i()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 143
    const-string v0, "directShare"

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->i()Landroid/os/Bundle;

    move-result-object v2

    const-string v3, "directShare"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    invoke-virtual {v1, v0, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 149
    :cond_0
    invoke-static {}, Lcom/instagram/creation/video/c/b;->e()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 150
    new-instance v0, Lcom/instagram/e/b/a/a;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->m()Landroid/support/v4/app/r;

    move-result-object v2

    invoke-direct {v0, v2}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v2, Lcom/instagram/creation/video/f/ax;

    invoke-direct {v2}, Lcom/instagram/creation/video/f/ax;-><init>()V

    invoke-virtual {v0, v2, v1}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;Landroid/os/Bundle;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    const-string v1, "next"

    invoke-virtual {v0, v1}, Lcom/instagram/e/b/a/a;->e(Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    const-string v1, "VideoScrubberFragmentICS"

    invoke-virtual {v0, v1}, Lcom/instagram/e/b/a/a;->d(Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    .line 162
    :goto_0
    return-void

    .line 156
    :cond_1
    new-instance v0, Lcom/instagram/e/b/a/a;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->m()Landroid/support/v4/app/r;

    move-result-object v2

    invoke-direct {v0, v2}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v2, Lcom/instagram/creation/video/f/az;

    invoke-direct {v2}, Lcom/instagram/creation/video/f/az;-><init>()V

    invoke-virtual {v0, v2, v1}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;Landroid/os/Bundle;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    const-string v1, "next"

    invoke-virtual {v0, v1}, Lcom/instagram/e/b/a/a;->e(Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    const-string v1, "VideoScrubberFragmentJellybean"

    invoke-virtual {v0, v1}, Lcom/instagram/e/b/a/a;->d(Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    goto :goto_0
.end method


# virtual methods
.method public X()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 102
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->v()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 103
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->e:Lcom/instagram/creation/video/ui/a/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/a/a;->f()V

    .line 104
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->e:Lcom/instagram/creation/video/ui/a/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/a/a;->c()V

    .line 105
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->b:Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/LivePreviewTextureView;->setVisibility(I)V

    .line 106
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->a:Lcom/instagram/creation/base/ui/FilterPicker;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/base/ui/FilterPicker;->setVisibility(I)V

    .line 108
    :cond_0
    return-void
.end method

.method public Y()V
    .locals 1

    .prologue
    .line 185
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->d:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->a()V

    .line 186
    return-void
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 44
    sget v0, Lcom/facebook/ax;->fragment_video_filter:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public a()Ljava/lang/String;
    .locals 2

    .prologue
    .line 64
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->l()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->edit:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public a(Landroid/graphics/SurfaceTexture;)V
    .locals 1
    .parameter

    .prologue
    .line 179
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->d:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->i()V

    .line 180
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/creation/video/f/x;->d:Lcom/instagram/creation/video/d/a;

    .line 181
    return-void
.end method

.method public a(Landroid/graphics/SurfaceTexture;I)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 166
    iget-object v1, p0, Lcom/instagram/creation/video/f/x;->e:Lcom/instagram/creation/video/ui/a/a;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/i/a;

    invoke-static {v1, v0}, Lcom/instagram/creation/video/d/a;->a(Lcom/instagram/creation/video/d/b;Lcom/instagram/creation/video/i/a;)Lcom/instagram/creation/video/d/a;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/x;->d:Lcom/instagram/creation/video/d/a;

    .line 168
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/f;

    new-instance v1, Lcom/instagram/creation/video/f/aa;

    invoke-direct {v1, p0, p1, p2}, Lcom/instagram/creation/video/f/aa;-><init>(Lcom/instagram/creation/video/f/x;Landroid/graphics/SurfaceTexture;I)V

    invoke-interface {v0, v1}, Lcom/instagram/pendingmedia/model/f;->a(Ljava/lang/Runnable;)V

    .line 175
    return-void
.end method

.method public a(Landroid/view/View;)V
    .locals 0
    .parameter

    .prologue
    .line 49
    invoke-direct {p0}, Lcom/instagram/creation/video/f/x;->aa()V

    .line 50
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 69
    invoke-super {p0, p1, p2}, Lcom/instagram/creation/video/f/ab;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 71
    new-instance v0, Lcom/instagram/creation/video/ui/a/a;

    invoke-direct {v0}, Lcom/instagram/creation/video/ui/a/a;-><init>()V

    sget v1, Lcom/facebook/aw;->play_button:I

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/a/a;->a(Landroid/view/View;)Lcom/instagram/creation/video/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->seek_frame_indicator:I

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/a/a;->b(Landroid/view/View;)Lcom/instagram/creation/video/ui/a/a;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/x;->e:Lcom/instagram/creation/video/ui/a/a;

    .line 75
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->square_texture_view:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    iput-object v0, p0, Lcom/instagram/creation/video/f/x;->b:Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    .line 76
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->b:Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    invoke-virtual {v0, p0}, Lcom/instagram/creation/video/ui/LivePreviewTextureView;->setDelegate(Lcom/instagram/creation/video/ui/d;)V

    .line 78
    sget v0, Lcom/facebook/aw;->fragment_filter_filter_picker:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/base/ui/FilterPicker;

    iput-object v0, p0, Lcom/instagram/creation/video/f/x;->a:Lcom/instagram/creation/base/ui/FilterPicker;

    .line 79
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->a:Lcom/instagram/creation/base/ui/FilterPicker;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/instagram/creation/video/e/q;->a(Landroid/content/Context;)[Lcom/instagram/creation/video/e/p;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/creation/base/ui/FilterPicker;->setFilters([Lcom/instagram/creation/base/f;)V

    .line 80
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->a:Lcom/instagram/creation/base/ui/FilterPicker;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/creation/base/ui/FilterPicker;->setSelectedFilterIndex(I)V

    .line 81
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->a:Lcom/instagram/creation/base/ui/FilterPicker;

    new-instance v1, Lcom/instagram/creation/video/f/y;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/y;-><init>(Lcom/instagram/creation/video/f/x;)V

    invoke-virtual {v0, v1}, Lcom/instagram/creation/base/ui/FilterPicker;->setOnFilterChangedListener(Lcom/instagram/creation/base/ui/b;)V

    .line 93
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/f;

    new-instance v1, Lcom/instagram/creation/video/f/z;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/z;-><init>(Lcom/instagram/creation/video/f/x;)V

    invoke-interface {v0, v1}, Lcom/instagram/pendingmedia/model/f;->a(Ljava/lang/Runnable;)V

    .line 99
    return-void
.end method

.method public b(Landroid/view/View;)V
    .locals 2
    .parameter

    .prologue
    .line 54
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->Z()Lcom/instagram/pendingmedia/model/c;

    move-result-object v0

    .line 55
    if-eqz v0, :cond_0

    .line 56
    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->I()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/creation/video/j/k;->a(Ljava/lang/String;Landroid/content/Context;)V

    .line 59
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/x;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->onBackPressed()V

    .line 60
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 189
    const-string v0, "video_filter"

    return-object v0
.end method

.method public g_()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 112
    iput-object v0, p0, Lcom/instagram/creation/video/f/x;->a:Lcom/instagram/creation/base/ui/FilterPicker;

    .line 113
    iput-object v0, p0, Lcom/instagram/creation/video/f/x;->b:Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    .line 114
    iput-object v0, p0, Lcom/instagram/creation/video/f/x;->e:Lcom/instagram/creation/video/ui/a/a;

    .line 116
    invoke-super {p0}, Lcom/instagram/creation/video/f/ab;->g_()V

    .line 117
    return-void
.end method

.method public w()V
    .locals 1

    .prologue
    .line 129
    invoke-super {p0}, Lcom/instagram/creation/video/f/ab;->w()V

    .line 130
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->d:Lcom/instagram/creation/video/d/a;

    if-eqz v0, :cond_0

    .line 131
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->d:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->h()V

    .line 133
    :cond_0
    return-void
.end method

.method public x()V
    .locals 1

    .prologue
    .line 121
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->d:Lcom/instagram/creation/video/d/a;

    if-eqz v0, :cond_0

    .line 122
    iget-object v0, p0, Lcom/instagram/creation/video/f/x;->d:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->g()V

    .line 124
    :cond_0
    invoke-super {p0}, Lcom/instagram/creation/video/f/ab;->x()V

    .line 125
    return-void
.end method
